global tableau, equal, currentsel, getlist, godlist, basecard, foundation, extras, dimpos
on beginSprite me
row = determinerow()
candd = [#one: 37, #two: 51, #thr: 65, #fou: 79]
fp = candd[row]
end
on determinerow me
if spriteNum = 93 then
return #one
else
if spriteNum = 94 then
return #two
else
if spriteNum = 95 then
return #thr
else
if spriteNum = 96 then
return #fou
end if
end if
end if
end if
end
on mouseEnter me
if getlist <> VOID then
if (tableau[row].getcardcount() < 14) and ((tableau[row].getcardcount() + extras.count) <= 14) then
if tableau[row].getcardcount() > 0 then
if extras.count = 0 then
if (getlist.getlastcard().rankvalue = (tableau[row].getlastcard().rankvalue - 1)) and (getlist.getlastcard().suitcolor <> tableau[row].getlastcard().suitcolor) then
equal = 1
godlist = tableau[row]
currentsel = tableau[row].getlastcard().spnum + 1
else
if (getlist.getlastcard().rank = "king") and (tableau[row].getlastcard().rank = "ace") and (getlist.getlastcard().suitcolor <> tableau[row].getlastcard().suitcolor) then
equal = 1
godlist = tableau[row]
currentsel = tableau[row].getlastcard().spnum + 1
end if
end if
else
if (getlist.cards[dimpos].rankvalue = (tableau[row].getlastcard().rankvalue - 1)) and (getlist.cards[dimpos].suitcolor <> tableau[row].getlastcard().suitcolor) then
equal = 1
godlist = tableau[row]
currentsel = tableau[row].getlastcard().spnum + 1
else
if (getlist.cards[dimpos].rank = "king") and (tableau[row].getlastcard().rank = "ace") and (getlist.cards[dimpos].suitcolor <> tableau[row].getlastcard().suitcolor) then